package com.itheima.sevice;

import com.itheima.pojo.OrderSettingDTO;
import com.itheima.pojo.OrderSettingVO;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

public interface OrderSettingService {
    /**
     * 下载模板
     * @param response
     * @param filename
     */
    void download(HttpServletResponse response, String filename);

    /**
     * 根据日期修改可预约人数
     * @param orderSettingDTO
     * @return
     */
    Integer editNumberByOrderDate(OrderSettingDTO orderSettingDTO);

    /**
     * 根据年月查询预约设置
     * @param month
     * @return
     */
    List<OrderSettingVO> getOrderSettingByMonth(String month);

    /**
     * 上传excel文件
     * @param excelFile
     * @return
     */
    Integer upload(MultipartFile excelFile) throws Exception;
}
